import {
  UPDATE_LOADING,
  UPDATE_TOAST,
  UPDATE_TABBAR,
  UPDATE_USER
} from "./mutation-types";

export default {

  //切换是否加载
  [UPDATE_LOADING](state, bool) {
    state.isLoading = bool;
  },

  //更新Toast
  [UPDATE_TOAST](state,params){
    state.toast = params;
  },

  //更新tabBar
  [UPDATE_TABBAR](state,params){
    state.tabBar = params;
  },

  //更新tabBar
  [UPDATE_USER](state,params){
    state.user = params;
  },
}
